ns = range(100, 10000, 100)
degrees = [128]


with open("commands", 'w') as f:
    for n in ns:
        for degree in degrees:
            commandLine = "python run.py %d %d > >(tee -a /scratch/${PBS_JOBID}/andreas_stdout_gen) 2> >(tee -a /scratch/${PBS_JOBID}/andreas_stderr_gen >&2)\n" % (n, degree)
            f.write(commandLine)

print "wrote %d commands to commands" % len(ns) * len(degrees)
